Meta description:
The creature regenerates 1 HP every second as long as they don't take any Fire or Acid damage. In that case the regeneration ends for the next 8 seconds. Moreover, this creature gains Fire Weakness I and Acid Weakness I as a consequence.
-
Name:
mRegenerationI
-
Displayed name:
Regeneration I
-
Description:
The creature regenerates 1 HP every second as long as they don't take any Fire or Acid damage. In that case the regeneration ends for the next 8 seconds. Moreover, this creature gains Fire Weakness I and Acid Weakness I as a consequence.
-
Cost:
expCost(2000,500)
-
Script:
stat = character:createStat([[sRegeneration]], [[other]]) stat.displayName:set([[Regeneration]]) character.sRegeneration:addNormal([[1]], [[natural]], [[Regeneration I]]) stat = character:createStat([[sAcidWeakness]], [[other]]) stat.displayName:set([[Acid Weakness]]) character.sAcidWeakness:addNormal([[1]], [[natural]], [[Regeneration I]]) stat = character:createStat([[sFireWeakness]], [[other]]) stat.displayName:set([[Fire Weakness]]) character.sFireWeakness:addNormal([[1]], [[natural]], [[Regeneration I]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
character.sHP:changeCurrent(character.sRegeneration.current)
-
Add ons:
-
Upgrades: